package com.lovo.invoicing.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.lovo.invoicing.bean.PageBean;
import com.lovo.invoicing.bean.RoleBean;
import com.lovo.invoicing.bean.LimitBean;

import java.util.List;

public interface IRoleService {


      IPage<RoleBean> queryRolesByPage(PageBean<RoleBean> pageBean);

      List<RoleBean> queryRoles();

      void addRole(String roleName,int[] limitIds);

      void deleteRoleById(int roleId);

      List<String> queryLimitsByRoleIds(int[] roleIds);

      //修改角色权限
      void updateRoleLimit(int roleId, int[] limitIds);

      List<LimitBean> queryLimitBeans();

      List<Integer> queryRoleIdsByUserId(int userId);

      List<String> queryLimitDescByRoleId(int roleId);

      List<Integer> queryLimitIdsByRoleId(int roleId);
}
